<?php

Yii::import('application.models._base.BaseBarang');
class Barang extends BaseBarang
{
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }
    public function get_hpp($qty_pcs)
    {
        return $this->price_buy * $qty_pcs;
    }
}